Xbasic

ColorDefinition.Enumerate Function

Syntax

Color_List as C = Enumerate as C([flags as c[,format as c]])

Arguments

Color_List

A list of defined color names.

flags

Optional. Default = "".

"H" = HTML colors
"S" = System colors
"A" = Alpha Anywhere colors
"F" = Fullnames (e.g. return "HTML-Lavender", rather than "Lavender")
format

Character

Description

Enumerate named color - optional flags 'H'tml colors 'S'ystem colors , 'A'lpha Five colors, 'F'ullnames .

Discussion

The ColorDefinition.Enumerate() method returns a list of defined color names.

Example

dim cc as colordefinition
? cc.Enumerate()
= Black
White
Red
Blue
Bright Green
Turquoise
Yellow
...
HTML-Black
HTML-Silver
HTML-Gray
HTML-White
HTML-Maroon
HTML-Red
...

See Also